

package pacman.skills;

/**
 * This skill represents pacman's upgraded Bite
 * @author Leonardo
 */
public class Bite2 extends Skill{

    /**
     * Set the inicial parameters of skill
     * Set unavailable at the begining of the game
     */
    public Bite2(){
        this.mana = 1;
        this.hit = 2;
        this.cost = 1;
        this.tick = 2;
        this.isActive = false;
        this.spriteIndex = 0;
    }

  
    /**
     * Activation of skill
     * @param cost Cost of skill
     * @param active If Bite is active
     * @return cost
     */
    public int Activate(int cost, boolean active){
        if(cost == this.cost && active == true)
            this.isActive = true;
        return this.cost;
    }

    
//    public void Delay(){
//        Timer time = new Timer(2);
//        time.run();
//    }

}
